package com.Cychat.commons.entity.pojo;


import java.util.Date;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@TableName("pet")
public class Pet {
    @Schema(description="宠物ID")
    @TableId(value = "pet_id", type = IdType.AUTO)
    private Integer petId;
    @Schema(description="宠物主人ID")
    private Integer ownerId;
    @Schema(description="宠物名称")
    private String name;
    @Schema(description="宠物类型(狗/猫/兔子等)")
    private String type;
    @Schema(description="品种")
    private String breed;
    @Schema(description="性别(公/母)")
    private String gender;
    @Schema(description="出生日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @Schema(description="体重(kg)")
    private BigDecimal weight;
    @Schema(description="头像URL")
    private String avatar;
    @Schema(description="是否绝育(true/false)")
    private Integer isNeutered;
    @Schema(description="疫苗状态(未接种/部分接种/已完成)")
    private String vaccineStatus;
    @Schema(description="芯片编号")
    private String chipNumber;
    @Schema(description="特殊说明")
    private String notes;
    @Schema(description="上次体检时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lastCheckup;
    @Schema(description="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @Schema(description="修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}